package com.example.usercenter.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.usercenter.common.PageNumber;
import lombok.Data;

import java.util.Date;

@Data
public class TeamQuery extends PageNumber {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 队伍名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 队伍描述
     */
    @TableField(value = "description")
    private String description;
    /**
     * 搜索词
     */
    private String searchText;
    /**
     * 最大人数
     */
    @TableField(value = "maxNum")
    private Integer maxNum;

    /**
     * 用户Id
     */
    @TableField(value = "userId")
    private Integer userId;
    /**
     * 过期时间
     */
    @TableField(value = "expireTime")
    private Date expireTime;
    /**
     * 队伍状态0-公开，1-私有，2-加密
     */
    @TableField(value = "status")
    private Integer status;


}
